123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521 |
- "use strict";
- (() => {
- var exports = {};
- exports.id = 23723;
- exports.ids = [23723,64820];
- exports.modules = {
- /***/ 13866:
- /***/ ((module, __webpack_exports__, __webpack_require__) => {
- __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
- __webpack_require__.r(__webpack_exports__);
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
- /* harmony export */ "default": () => (/* binding */ pageWrapperTemplate),
- /* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps),
- /* harmony export */ "getStaticPaths": () => (/* binding */ getStaticPaths),
- /* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps)
- /* harmony export */ });
- /* harmony import */ var _sentry_server_config_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96270);
- /* harmony import */ var _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58097);
- /* harmony import */ var _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20997);
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71853);
- /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60866);
- /* harmony import */ var next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var _changelog_module_scss__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(83881);
- /* harmony import */ var _changelog_module_scss__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_changelog_module_scss__WEBPACK_IMPORTED_MODULE_13__);
- /* harmony import */ var _components_NextSeoWrapper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25869);
- /* harmony import */ var _components_PageContainer__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9234);
- /* harmony import */ var _components_Sanity_LocalizationMessage__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75162);
- /* harmony import */ var _components_Sanity_Page__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67830);
- /* harmony import */ var _dls_Spinner_Spinner__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(7190);
- /* harmony import */ var _lib_sanity__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(1672);
- /* harmony import */ var _utils_navigation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(57933);
- /* harmony import */ var _utils_staticPageGeneration__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(45137);
- /* harmony import */ var src_pages_error__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(36049);
- var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_components_Sanity_Page__WEBPACK_IMPORTED_MODULE_8__, _lib_sanity__WEBPACK_IMPORTED_MODULE_10__, _utils_navigation__WEBPACK_IMPORTED_MODULE_11__, src_pages_error__WEBPACK_IMPORTED_MODULE_12__]);
- ([_components_Sanity_Page__WEBPACK_IMPORTED_MODULE_8__, _lib_sanity__WEBPACK_IMPORTED_MODULE_10__, _utils_navigation__WEBPACK_IMPORTED_MODULE_11__, src_pages_error__WEBPACK_IMPORTED_MODULE_12__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);
- const ProductUpdatePage = ({ hasError , page })=>{
- const { lang } = next_translate_useTranslation__WEBPACK_IMPORTED_MODULE_4___default()();
- const router = (0,next_router__WEBPACK_IMPORTED_MODULE_3__.useRouter)();
- if (router.isFallback) {
- return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
- className: (_changelog_module_scss__WEBPACK_IMPORTED_MODULE_13___default().container),
- children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_dls_Spinner_Spinner__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {})
- });
- }
- if (hasError) {
- return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(src_pages_error__WEBPACK_IMPORTED_MODULE_12__["default"], {
- statusCode: 500
- });
- }
- return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
- children: [
- /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_NextSeoWrapper__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
- // @ts-ignore
- title: page.title,
- // @ts-ignore
- url: (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_11__/* .getCanonicalUrl */ .Z2)(lang, (0,_utils_navigation__WEBPACK_IMPORTED_MODULE_11__/* .getProductUpdatesUrl */ .pO)(page.slug.current))
- }),
- /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_PageContainer__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {
- children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("div", {
- className: (_changelog_module_scss__WEBPACK_IMPORTED_MODULE_13___default().container),
- children: [
- /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
- className: (_changelog_module_scss__WEBPACK_IMPORTED_MODULE_13___default().backIconContainer)
- }),
- /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_Sanity_LocalizationMessage__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {}),
- /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_components_Sanity_Page__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
- page: page,
- isIndividualPage: true
- })
- ]
- })
- })
- ]
- });
- };
- const getStaticProps$1 = async (context)=>{
- const { id ="" } = context.params;
- try {
- const page = await (0,_lib_sanity__WEBPACK_IMPORTED_MODULE_10__/* .executeGroqQuery */ .a)('*[_type == "productUpdate" && slug.current == $slug][0]', {
- slug: id
- }, true);
- if (!page) {
- // @ts-ignore
- throw new src_pages_error__WEBPACK_IMPORTED_MODULE_12__["default"]("invalid slug");
- }
- return {
- props: {
- page
- },
- revalidate: _utils_staticPageGeneration__WEBPACK_IMPORTED_MODULE_14__/* .REVALIDATION_PERIOD_ON_ERROR_SECONDS */ .eW
- };
- } catch (error) {
- return {
- props: {
- hasError: true
- },
- revalidate: _utils_staticPageGeneration__WEBPACK_IMPORTED_MODULE_14__/* .REVALIDATION_PERIOD_ON_ERROR_SECONDS */ .eW
- };
- }
- };
- const getStaticPaths = async ()=>{
- const pages = await (0,_lib_sanity__WEBPACK_IMPORTED_MODULE_10__/* .executeGroqQuery */ .a)('*[_type == "productUpdate"]{ slug}');
- return {
- paths: pages.map((page)=>({
- params: {
- id: page.slug.current
- }
- })),
- fallback: true
- };
- };
- var serverComponentModule = /*#__PURE__*/Object.freeze({
- __proto__: null,
- getStaticProps: getStaticProps$1,
- getStaticPaths: getStaticPaths,
- 'default': ProductUpdatePage
- });
- /*
- * This file is a template for the code which will be substituted when our webpack loader handles non-API files in the
- * `pages/` directory.
- *
- * We use `__SENTRY_WRAPPING_TARGET_FILE__.cjs` as a placeholder for the path to the file being wrapped. Because it's not a real package,
- * this causes both TS and ESLint to complain, hence the pragma comments below.
- */
- const userPageModule = serverComponentModule ;
- const pageComponent = userPageModule ? userPageModule.default : undefined;
- const origGetInitialProps = pageComponent ? pageComponent.getInitialProps : undefined;
- const origGetStaticProps = userPageModule ? userPageModule.getStaticProps : undefined;
- const origGetServerSideProps = userPageModule ? userPageModule.getServerSideProps : undefined;
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- const getInitialPropsWrappers = {
- '/_app': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapAppGetInitialPropsWithSentry,
- '/_document': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapDocumentGetInitialPropsWithSentry,
- '/_error': _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapErrorGetInitialPropsWithSentry,
- };
- const getInitialPropsWrapper = getInitialPropsWrappers['/product-updates/[id]'] || _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetInitialPropsWithSentry;
- if (pageComponent && typeof origGetInitialProps === 'function') {
- pageComponent.getInitialProps = getInitialPropsWrapper(origGetInitialProps) ;
- }
- const getStaticProps =
- typeof origGetStaticProps === 'function'
- ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetStaticPropsWithSentry(origGetStaticProps, '/product-updates/[id]')
- : undefined;
- const getServerSideProps =
- typeof origGetServerSideProps === 'function'
- ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapGetServerSidePropsWithSentry(origGetServerSideProps, '/product-updates/[id]')
- : undefined;
- const pageWrapperTemplate = pageComponent ? _sentry_nextjs__WEBPACK_IMPORTED_MODULE_1__.wrapPageComponentWithSentry(pageComponent ) : pageComponent;
- __webpack_async_result__();
- } catch(e) { __webpack_async_result__(e); } });
- /***/ }),
- /***/ 75184:
- /***/ ((module) => {
- module.exports = require("@reduxjs/toolkit");
- /***/ }),
- /***/ 11791:
- /***/ ((module) => {
- module.exports = require("@sanity/image-url");
- /***/ }),
- /***/ 58097:
- /***/ ((module) => {
- module.exports = require("@sentry/nextjs");
- /***/ }),
- /***/ 59003:
- /***/ ((module) => {
- module.exports = require("classnames");
- /***/ }),
- /***/ 59606:
- /***/ ((module) => {
- module.exports = require("humps");
- /***/ }),
- /***/ 12372:
- /***/ ((module) => {
- module.exports = require("lodash/findKey");
- /***/ }),
- /***/ 98492:
- /***/ ((module) => {
- module.exports = require("lodash/groupBy");
- /***/ }),
- /***/ 35526:
- /***/ ((module) => {
- module.exports = require("lodash/random");
- /***/ }),
- /***/ 64042:
- /***/ ((module) => {
- module.exports = require("lodash/range");
- /***/ }),
- /***/ 16641:
- /***/ ((module) => {
- module.exports = require("next-seo");
- /***/ }),
- /***/ 60866:
- /***/ ((module) => {
- module.exports = require("next-translate/useTranslation");
- /***/ }),
- /***/ 3280:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/app-router-context.js");
- /***/ }),
- /***/ 92796:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/head-manager-context.js");
- /***/ }),
- /***/ 3539:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/i18n/detect-domain-locale.js");
- /***/ }),
- /***/ 34014:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/i18n/normalize-locale-path.js");
- /***/ }),
- /***/ 78524:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/is-plain-object.js");
- /***/ }),
- /***/ 78020:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/mitt.js");
- /***/ }),
- /***/ 64406:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/page-path/denormalize-page-path.js");
- /***/ }),
- /***/ 24964:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router-context.js");
- /***/ }),
- /***/ 93431:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/add-locale.js");
- /***/ }),
- /***/ 11751:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/add-path-prefix.js");
- /***/ }),
- /***/ 46220:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/compare-states.js");
- /***/ }),
- /***/ 10299:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/format-next-pathname-info.js");
- /***/ }),
- /***/ 23938:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/format-url.js");
- /***/ }),
- /***/ 29565:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/get-asset-path-from-route.js");
- /***/ }),
- /***/ 35789:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/get-next-pathname-info.js");
- /***/ }),
- /***/ 1897:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/is-bot.js");
- /***/ }),
- /***/ 1428:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/is-dynamic.js");
- /***/ }),
- /***/ 28854:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/parse-path.js");
- /***/ }),
- /***/ 91292:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/parse-relative-url.js");
- /***/ }),
- /***/ 34567:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/path-has-prefix.js");
- /***/ }),
- /***/ 80979:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/querystring.js");
- /***/ }),
- /***/ 93297:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/remove-trailing-slash.js");
- /***/ }),
- /***/ 36052:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/resolve-rewrites.js");
- /***/ }),
- /***/ 84226:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/route-matcher.js");
- /***/ }),
- /***/ 95052:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/router/utils/route-regex.js");
- /***/ }),
- /***/ 59232:
- /***/ ((module) => {
- module.exports = require("next/dist/shared/lib/utils.js");
- /***/ }),
- /***/ 71853:
- /***/ ((module) => {
- module.exports = require("next/router");
- /***/ }),
- /***/ 16689:
- /***/ ((module) => {
- module.exports = require("react");
- /***/ }),
- /***/ 20997:
- /***/ ((module) => {
- module.exports = require("react/jsx-runtime");
- /***/ }),
- /***/ 66704:
- /***/ ((module) => {
- module.exports = import("@radix-ui/react-tooltip");;
- /***/ }),
- /***/ 40680:
- /***/ ((module) => {
- module.exports = import("@sanity/client");;
- /***/ }),
- /***/ 88813:
- /***/ ((module) => {
- module.exports = import("firebase/compat/analytics");;
- /***/ }),
- /***/ 33773:
- /***/ ((module) => {
- module.exports = import("firebase/compat/app");;
- /***/ }),
- /***/ 66419:
- /***/ ((module) => {
- module.exports = import("groq");;
- /***/ }),
- /***/ 63477:
- /***/ ((module) => {
- module.exports = require("querystring");
- /***/ })
- };
- ;
- // load runtime
- var __webpack_require__ = require("../../webpack-runtime.js");
- __webpack_require__.C(exports);
- var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
- var __webpack_exports__ = __webpack_require__.X(0, [11497,79165,96270,24709,57933,61239,25869,50497,36049,26083], () => (__webpack_exec__(13866)));
- module.exports = __webpack_exports__;
- })();
- //# sourceMappingURL=[id].js.map
|